using System;
using JoyfulHomeJourney.BackEnd.Infrastructure.EFCore;
using JoyfulHomeJourney.BackEnd.Infrastructure.Dtos.Requests.Objects;
namespace JoyfulHomeJourney.BackEnd.Server.Instances.Extends.Requests
{
	public static class EntitySysDictionaryTypesUpdateExtend
{
		public static SysDictionaryTypes ToUpdateEntity(this RequestSysDictionaryTypesDto dto)
		{
			return new SysDictionaryTypes
			{
				DtId = dto.id,
				DtName = dto.name,
				DtKey = dto.key,
				DtDescription = dto.description,
			};
		}
	}
}
